package core.reactor;

import java.util.Collection;

import config.mm_config;
import context.mm_context;
import log.mm_logger;
import utils.mm_thread;

/**
 * 启动器
 * @author dongyazhuo
 */
public class mm_start {

	private String TAG = mm_start.class.getSimpleName() + " : ";

	/**
	 * 启动
	 */
	public void start() {
		Collection<mm_config> values = mm_context.instance().get_configs().values();
		for (mm_config _mm_config : values) {
			if (_mm_config.isStart()) {
				new mm_thread().start(new mm_reactor(_mm_config));
				mm_thread.sleep(200L);
			}
		}
		mm_logger.i(TAG + " start ok !!! ");
	}

}
